package com.cheng.im.service.frienship.model.req;

import com.cheng.im.service.common.model.RequestBase;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;


@Data
@ApiModel("IM批量导入好友关系请求类")
public class ImporFriendShipReq extends RequestBase {

    @ApiModelProperty("fromId")
    @NotBlank(message = "fromId不能为空")
    private String fromId;

    @ApiModelProperty("IM导入好友关系请求数据项")
    private List<ImportFriendDto> friendItem;

    @Data
    @ApiModel("IM导入好友关系请求数据项")
    public static class ImportFriendDto{

        @ApiModelProperty("好友ID")
        private String toId;

        @ApiModelProperty("备注")
        private String remark;

        @ApiModelProperty("好友来源")
        private String addSource;

        @ApiModelProperty("状态")
        private Integer status = 0;

        @ApiModelProperty("拉黑情况")
        private Integer black = 1;
    }

}
